package com.imooc.service.Impl;

import com.imooc.dao.ShopCategoryMapper;
import com.imooc.entity.ShopCategory;
import com.imooc.service.ShopCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author
 * @create 2018-07-31 20:34
 **/
@Service
public class ShopCategoryServiceImpl implements ShopCategoryService {

    @Autowired
    private ShopCategoryMapper shopCategoryMapper;

    /**
     * 根据查询条件获取店铺分类的列表
     * @param shopCategoryCondition
     * @return
     */
    @Override
    public List<ShopCategory> getShopCategoryList(ShopCategory shopCategoryCondition) {
        return shopCategoryMapper.queryShopCategory( shopCategoryCondition);
    }
}
